from abc import ABC, abstractmethod

class TranscriptionObserver(ABC):
    """转录观察者基类"""
    @abstractmethod
    def on_transcription_update(self, text: str, is_final: bool = False):
        """当转录文本更新时调用"""
        pass 